﻿using Microsoft.AspNetCore.Mvc;

namespace MvcMovie1.Controllers
{
    public class HelloController : Controller
    {
        public IActionResult Index()
        {
            HttpContext.Session.SetString("username", "小明");
            return View();
        }
        public IActionResult Welcome()
        {
            return View();
        }
        //public String Index()
        //{
        //    return "这是一个Index方法";
        //}
        //public IActionResult Welcome()
        //{
        //    return Content("<h3>这是Welcome方法…</h3>", "text/html; charset=utf-8");
        //}
    }
}
